import { getUserDetailById } from '@/api/user'
export default {
  data() {
    return {
      userInfo: {},
      name1: 'jack'
    }
  },
  create() {
    this.getUser()
  },
  methods: {
    async getUser() {
      const res = await getUserDetailById(this.$route.query.id)
      // console.log(res, 9999)
      this.userInfo = res.data // 保存全量数据
    },
    ss() {
      console.log(this.name1)
    }
  }
}
